public class Simpleremotecontrol
{
        Command slot;

        public Simpleremotecontrol(){}

        public void setCommand(Command command)
        {
                slot = command;
        }

        public void buttonWasPressed()
        {
                slot.execute();
        }
}

